package com.hkemmm.dao;

import com.hkemmm.bean.Author;
import com.hkemmm.bean.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IBlogMapper {

    public Blog selectBlog(Integer id);

    public int countByID(Integer id);

    //一对一联合查询
    public Blog selectBolgJoinAuthor(Integer id);

    //一对多联合查询
    public Blog selectBlogJoinPost(Integer id);

    public List<Blog> selectByAuthorId(@Param("Author")Author author,@Param("Blog")Blog blog);
}
